package com.ty.day4;

/**
 * Created by IntelliJ IDEA.
 * Author : txy
 * Create 2023/10/31 17:07
 */
public class Nine {
    public static void main(String[] args) {
        long count = 4, sum = 0;
        for (int i = 2; i < 9; i++) {
            if (i == 2) {
                count = count * 7;
            } else {
                count = count * 8;
            }
            sum += count;
        }
        System.out.println("0~7组成的奇数有：" + sum + "个");
    }
}
